class Page12 extends BaseScreen {
    public constructor() {
        super();
        this.skinName = "resource/eui_skins/Page12Skin.exml";
    }

	private img_1: eui.Image;
    private img_2: eui.Image;
    private img_3: eui.Image;
    private img_4: eui.Image;
	private img_5: eui.Image;
	private img_6: eui.Image;

	private number_1:NumbersTxtPage;
    private number_2:NumbersTxtPage;

    protected childrenCreated(): void {
        super.childrenCreated();
        this.init_view();
        this.resetui();
    }

    public resetui(){
        this.img_1.alpha = 0;

		this.number_1.visible = this.number_2.visible = false;

		this.img_2.x = this.img_3.x = this.img_4.x = -640;

        if(this.xx_page){
            this.xx_page.stop();
        }
    }

    public init_view() {
		this.number_1.num_txt.textAlign = 'left';
		this.number_2.num_txt.textAlign = 'left';
        this.showPage();
    }

    public showPage() {
        super.showPage();
        this.resetui();

        egret.Tween.get(this.img_1).to({ alpha:1}, 2000);

        // this.number_1.startMove(184,500,1200,49,'','184');
		// this.number_2.startMove(1322,500,1200,49,'','1,322.02');
        egret.Tween.get(this.img_2).wait(200).to({ x:0}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_3).wait(600).to({ x:0}, 1000, egret.Ease.backOut);
        egret.Tween.get(this.img_4).wait(900).to({ x:0}, 1000, egret.Ease.backOut);

        if(this.xx_page){
            this.xx_page.start();
        }

    }

    public resize(): void {
         super.resize();
    }

	protected process(){
        // this.number_1.updateNum();
        // this.number_2.updateNum();
    }
}